<template>
  <dv-border-box-3 class="box" :color="['#339ebe', '#3872ac']">
    <dv-water-level-pond
      :config="config"
      style="width: 200px; height: 200px; margin-left: 100px"
    />
    <span>CNC</span>
    <div class="text">
      <p>{{ $t('checkbox.Running') }}:92%</p>
      <p>{{ $t('checkbox.Idle') }}:6%</p>
      <p>{{ $t('checkbox.Failure') }}:0%</p>
      <p>{{ $t('checkbox.Downtime') }}:2%</p>
    </div>
  </dv-border-box-3>
</template>

<script>
export default {
  data() {
    return {
      config: {
        data: [92, 55],
        shape: "round",
        waveHeight: 30,
        waveOpacity: 0.5,
        waveNum: 2,
        colors: ["#11C0EB", "#16EEFF"],
      },
    };
  },
};
</script>

<style lang="scss" scoped>
.box {
  width: 400px;
  height: 29vh;
  margin-left: 30px;
  padding-top: 40px;
}
.echarts {
  width: 100%;
  height: 28vh;
}
span {
  font-size: 16px;
  font-weight: 700;
  color: #75e9f3;
  position: absolute;
  margin: -215px 0 0 22px;
}
.text {
  position: absolute;
  margin: 0px 0 0 22px;
  font-size: 15px;
  width: 82%;
  margin-left: 9%;
  display: flex;
  justify-content: space-around;
  p:nth-child(1) {
    color: #06c506;
  }
  p:nth-child(2) {
    color: #bba90c;
  }
  p:nth-child(3) {
    color: #df0808;
  }
  p:nth-child(4) {
    color: #929090;
  }
}
</style>
